#ifndef STATEBAR_H
#define STATEBAR_H

#include <QWidget>
#include <QDebug>
#include <QDateTimeEdit>
class StateBar : public QWidget
{
    Q_OBJECT
public:
    explicit StateBar(QWidget *parent = 0);

    
signals:
private:
    int wifiGrade;//1-4
    int batGrade;//1-4
    int batGradeCount;
    qreal cpu_temp;
    QDateTime dateTime;
    bool my_cpuTempEnable;
    int my_electPerc;//百分比
    int my_electProg;//进度条
    bool my_chargeEnable;
    int my_chargeEle;
    bool my_twinkleEnable;
    bool my_twink;
    bool my_alarmEnable;
    bool my_chargingEnable;
    int my_chargeCount;
    bool my_onlyPowerEnable;

private:
    void setBatprog(int prog);


public:
    void updateData(int,int);
    void updateDateTime(QDateTime);
    void updateElec(QList<int>);
    void setChargeEnable(bool enable);


public slots:
protected:
    void paintEvent(QPaintEvent *);
    
};

#endif // STATEBAR_H
